import request from '@/utils/request.js';

//登录方法
export function login(data){
    return request({
        url:'/authentication',
        method:'post',
        headers:{
            'Content-type': 'application/json'
        },
        data:data
    })
}
  //获取用户菜单
  export function getMenu(){
    return request({
        url:'/getMenu',
        method:'get'
    })
}
// 获取用户详细信息
export function getUserInfo() {
    return request({
      url: '/getUserInfo',
      method: 'get'
    })
  }

  // 获取验证码
  export function getCodeImg(){
    return request({
      url: '',
      method: 'get'
    })
  }
